<?php if($product->hasDiscount()): ?>
<h2><a href="#"><?php echo price_format($product['price']) ?></a></h2>
<h3><a href="#"><?php echo price_format($product['discount_price']) ?></a></h3>
<?php else: ?>
<h3><a href="#"><?php echo price_format($product['price']) ?></a></h3>
<?php endif; ?>